package cdu.ywy.codemaster.controller;

import cdu.ywy.codemaster.common.BaseResponse;
import cdu.ywy.codemaster.common.ResultUtils;
import cdu.ywy.codemaster.exception.BusinessException;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/health")
public class HealthController {
     @GetMapping("/")
    public BaseResponse<String> healthCheck() {
         return ResultUtils.success("ok");
     }
}
